import 'package:dmz/business/home/model/moto_model.dart';
import 'package:get/get.dart';

import '../../../base/controller/base_controller.dart';
import '../../home/controller/home_main_controller.dart';

class SelectMotoController extends BaseController {
  @override
  void loadNet() {}

  @override
  void onHidden() {}

  List<MotoModel>? motoList;
  int motoSelect = -1;
  int motoSave = -1;

  @override
  void onInit() {
    motoList = Get.find<HomePageController>().motoList;
    motoSelect = Get.find<HomePageController>().pageIndex;
    super.onInit();
  }

  didSelect(int index) {
    motoSelect = index;
    update(['motoSelect']);
  }
}
